#ifndef GEOOBJECT_H
#define GEOOBJECT_H
//字符串
#include<QString>
//点类型
#include<QPointF>
//动态数组
#include<QVector>
//投影
#include"projectionlambert.h"
//着色文件
#include"style.h"


class geoObject
{
public:
    geoObject();
    virtual ~geoObject();
    void mapProjection(projection*proj);
    QVector<QPointF> coordinates;
    QVector<QPointF> projectedCoordinates;//投影坐标
    //参见具体的GeoJson文件中的properties部分
    int adcode;
    int telecode;
    QString name;
    QPointF centroid;
    int childrenNum;
    QString level;
    int subFeatureIndex;
    QVector<int> acroutes;
    QString type;
    style renderStyle;
    virtual bool isPointWithin(QPointF)=0;
    double off;//选择操作误差值

    bool isRendered;
    bool isSelected;
    bool isSearched;
private:
};

#endif // GEOOBJECT_H
